<?php /* Smarty version 2.6.18, created on 2008-06-18 14:19:07
         compiled from ajax_posts.interface.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', '_', 'ajax_posts.interface.tpl', 3, false),array('function', 'tinyMCE', 'ajax_posts.interface.tpl', 46, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax.header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div id="options">
		<input type="button" value="<?php echo translate(array('t' => 'Save'), $this);?>
"   id="post_save" class="save">
		<input type="button" value="<?php echo translate(array('t' => 'Cancel'), $this);?>
" id="post_cancel" class="cancel">
		<input type="button" value="<?php echo translate(array('t' => 'Eliminar'), $this);?>
" id="post_delete" class="delete">
	</div>

	<h1><img src="../public/icons/16x16/apps/<?php echo $this->_tpl_vars['ITEM_TYPE']; ?>
.png"/><?php echo translate(array('t' => 'Post'), $this);?>
 #<?php echo $this->_tpl_vars['post']->id; ?>
</h1> 	

	<div id="icontent">
		<ul id="lang">
		<?php $_from = ($this->_tpl_vars['languages']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iso'] => $this->_tpl_vars['lang']):
?>
			<li id="li_<?php echo $this->_tpl_vars['iso']; ?>
"><a id="lang_<?php echo $this->_tpl_vars['iso']; ?>
"><?php echo $this->_tpl_vars['lang']; ?>
</a></li>
		<?php endforeach; endif; unset($_from); ?>
		</ul>

		<br style="clear:both;">

		<div id="blocks">
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax_posts.component.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax_categories.component.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax_images.component.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		</div>

		<div id="icontent-lang">
			<div id="post_working"></div>
				<form id="post_form" action="index.php?c=ajax_posts&a=post_save&id=<?php echo $this->_tpl_vars['post']->id; ?>
" method="post">
				<?php $_from = ($this->_tpl_vars['languages']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iso'] => $this->_tpl_vars['lang']):
?>
					<div id="edit_<?php echo $this->_tpl_vars['iso']; ?>
" class="edit_lang" style="display:none;">
					<b><?php echo translate(array('t' => 'Titulo'), $this);?>
</b>
					<?php $this->assign('title_lang', "title_".($this->_tpl_vars['iso'])); ?>
					<input type="text" value="<?php echo $this->_tpl_vars['post']->{(($_var=$this->_tpl_vars['title_lang']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}; ?>
" name="<?php echo $this->_tpl_vars['title_lang']; ?>
">
					<b><?php echo translate(array('t' => 'Intro'), $this);?>
</b>
					<?php $this->assign('intro_lang', "intro_".($this->_tpl_vars['iso'])); ?>
					<textarea name="<?php echo $this->_tpl_vars['intro_lang']; ?>
"><?php echo $this->_tpl_vars['post']->{(($_var=$this->_tpl_vars['intro_lang']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}; ?>
</textarea>
					<b><?php echo translate(array('t' => 'Contenido'), $this);?>
</b>
					<?php $this->assign('content_lang', "content_".($this->_tpl_vars['iso'])); ?>
					<textarea name="<?php echo $this->_tpl_vars['content_lang']; ?>
"><?php echo $this->_tpl_vars['post']->{(($_var=$this->_tpl_vars['content_lang']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}; ?>
</textarea>
					</div>
				<?php endforeach; endif; unset($_from); ?>
				</form>
		</div>
	</div>
</div>
	
<?php echo smarty_function_tinyMCE(array('width' => '390','height' => '300'), $this);?>

<script type="text/javascript">
var ITEM_ID   = '<?php echo $this->_tpl_vars['post']->id; ?>
';
var ITEM_TYPE = '<?php echo $this->_tpl_vars['ITEM_TYPE']; ?>
';
var ITEM_RELATION = 'item';
var LANGS = new Array('es','en');
posts_init();
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'ajax.footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>